// SASS variable overrides must be declared before loading up Active Admin's styles.
//
// To view the variables that Active Admin provides, take a look at
// `app/assets/stylesheets/active_admin/mixins/_variables.scss` in the
// Active Admin source.
//


// Active Admin's got SASS!
$filter-field-seperator-width: 20px;
$side-by-side-filter-input-width: 20px;
@import "active_admin/mixins";
@import "active_material";
@import "active_admin_datetimepicker";
@import 'activeadmin_addons/all';
@import 'activeadmin_addons/material';
@import "select2";

// Overriding any non-variable SASS must be done after the fact.
// For example, to change the default status-tag color:
//
//   .status_tag { background: #6090DB; }

form.formtastic {
  -webkit-border-radius: 5px;
  border-radius: 5px;
  padding: 20px;
  margin: auto;
}

form.formtastic fieldset {
  border: none;
  margin-bottom: 10px;
}

form.formtastic fieldset:last-of-type {
  margin-bottom: 0;
}

form.formtastic legend {
  color: #384313;
  font-size: 16px;
  font-weight: bold;
  padding-bottom: 10px;
}

form.formtastic fieldset fieldset legend {
  color: #111111;
  font-size: 13px;
  font-weight: normal;
  padding-bottom: 0;
}

form.formtastic ol li {
  background: rgba(255, 255, 255, .3);
  border-color: #e3ebc3;
  border-color: rgba(255, 255, 255, .6);
  border-style: solid;
  border-width: 2px;
  -webkit-border-radius: 5px;
  list-style: none;
  padding: 5px 10px;
  margin-bottom: 2px;
}

form.formtastic ol ol li {
  background: none;
  border: none;
  float: left;
}

form.formtastic label {
  float: left;
  font-size: 13px;
  width: 110px;
}

form.formtastic fieldset fieldset label {
  background: none no-repeat left 50%;
  line-height: 20px;
  padding: 0 0 0 30px;
  width: auto;
}

form.formtastic fieldset fieldset label:hover {
  cursor: pointer;
}

form.formtastic input[type=text],
form.formtastic input[type=password],
form.formtastic input[type=email],
form.formtastic input[type=number],
form.formtastic input[type=url],
form.formtastic input[type=tel],
form.formtastic input[type=date],
form.formtastic textarea,
form.formtastic span.select2 {
  width: 79.5% !important;
}

form.formtastic .select2-input, .select2-selection, .select2-container {
  min-height: 42px;
}

form.formtastic .input_area {
  width: 79.5% !important;
}

form.formtastic .cke_chrome {
  width: 79.5% !important;
  word-break: break-all;
  overflow: auto;
}

form.formtastic .inline-hints {
  padding-left: 110px;
}

div#login {
  min-width: 750px;
}

ul.utility_nav {
  list-style: none;
  padding: 0
}

.status_tag {
  background: darken($secondary-color, 50%);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 3px 5px 2px 5px;
  font-size: 0.8em;

  &.ok, &.published, &.complete, &.completed, &.green {
    background: #8daa92;
  }

  &.warn, &.warning, &.orange {
    background: #e29b20;
  }

  &.error, &.red {
    background: red;
  }

  &.pink {
    background: pink;
  }

  &.purple {
    background: purple;
  }

  &.green {
    background: green;
  }
}

.warning {
  background-color: #e29b20 !important;
}

.table_tools, .panel h3 {
  background-color: whitesmoke;
  border: 1px solid whitesmoke;
}

.scope.selected a {
  background-color: whitesmoke;
  font-size: 14px;
  color: black;
}

a.button, a:link.button, a:visited.button, input[type=submit], input[type=button], button {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  display: inline-block;
  line-height: 18px;
  margin: 4px;
  padding: 12px 8px;
  position: relative;
  text-align: center;
  transition: 0.25s all;
  user-select: none;
  vertical-align: center;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  background-color: #009688;
  color: white;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.12);
  font-weight: 600;
  min-width: 88px;
}

.modal2 {
  background-color: #f8f8f8;
  width: 35%;
  height: auto;
  display: none;
  border: 5px solid #656565;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px; /* future proofing */
  -khtml-border-radius: 10px; /* for old Konqueror browsers */
  overflow: scroll;
}

.inline-hints {
  color: red;
}

.modal-open .select2-dropdown {
  z-index: 10060;
}

.modal-open .datetime_picker {
  z-index: 10060;
}

form.formtastic .column {
  float: left;
}

form.formtastic .column {
  float: left;
}

.columns .column {
  float: left;
}

.flash_error {
  background: darkred;
  text-shadow: 0 1px 1px darkred;
}

.flash {
  left: 30%;
}

.index_as_slate .blank_slate {
  margin: 5px;
  min-width: 250px;
}

.blank_slate .attributes_table {
  min-width: 350px;
}

.blank_slate .attributes_table tr {
  height: 48px;
  transition: 0.12s background
}

.blank_slate .attributes_table .row th {
  color: rgba(0, 0, 0, 0.54);
  font-size: 0.8125rem;
  border-bottom: 1px solid #efefef;
  font-weight: 600;
  height: 48px;
  line-height: 16px;
  padding: 8px 16px;
  text-align: left;
  white-space: nowrap;
}

.blank_slate .attributes_table .row td {
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.8125rem;
  border-bottom: 1px solid #efefef;
  font-weight: 400;
  padding: 8px 16px;
}

.form_in_place input[type=text], input[type=number] {
  background: #fff;
  border-radius: 3px;
  border: 1px solid #d3d3d3;
  box-shadow: inset 1px 1px 1px rgba(34, 34, 34, 0.08);
  display: block;
  font: normal 0.875rem/24px "RobotoDraft", sans-serif;
  line-height: 24px;
  margin: 0;
  padding: 8px;
  transition: 0.35s border-color, 0.35s box-shadow;
}

.offline {
  background-image: asset_data_url("offline.svg");
  background-repeat: no-repeat;
  background-size: 20%, contain;
  background-position: center;
}

.with_sidebar #sidebar {
  min-width: 242px;
}